import java.util.Scanner;

public class UserTest {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入用户名");

        String UserName=scanner.next();

        System.out.println("请输入密码");

        String PassWord=scanner.next();

        User user = new User();
        boolean a1 = user.login(UserName,PassWord);
        if(a1) {
            System.out.println("登录成功，" + UserName + "欢迎你！");
        }else{
            System.out.println("登录失败，" + "用户名或密码错误！");

        }

    }
}